package com.gcd.service.impl;

import com.gcd.mapper.LoginMapper;
import com.gcd.model.Member;
import com.gcd.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    LoginMapper loginMapper;

    @Autowired
    public void setLoginMapper(LoginMapper loginMapper) {
        this.loginMapper = loginMapper;
    }

    @Override
    public Member findByPhone(String phone) {
        return loginMapper.findByPhone( phone);
    }
}
